Optimal. Leaf size=317 \[ -\frac{\sqrt{a^2+2 a b x+b^2 x^2} \left (c+d x^2+e x\right )^{3/2} \left (-6 d x (10 a d-7 b e)+50 a d e+32 b c d-35 b e^2\right )}{240 d^3 (a+b x)}-\frac{\sqrt{a^2+2 a b x+b^2 x^2} (2 d x+e) \sqrt{c+d x^2+e x} \left (2 a d \left (4 c d-5 e^2\right )-b \left (12 c d e-7 e^3\right )\right )}{128 d^4 (a+b x)}-\frac{\sqrt{a^2+2 a b x+b^2 x^2} \left (4 c d-e^2\right ) \left (8 a c d^2-10 a d e^2-12 b c d e+7 b e^3\right ) \tanh ^{-1}\left (\frac{2 d x+e}{2 \sqrt{d} \sqrt{c+d x^2+e x}}\right )}{256 d^{9/2} (a+b x)}+\frac{b x^2 \sqrt{a^2+2 a b x+b^2 x^2} \left (c+d x^2+e x\right )^{3/2}}{5 d (a+b x)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.333016, antiderivative size = 317, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 38, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.158, Rules used = {1000, 832, 779, 612, 621, 206} \[ -\frac{\sqrt{a^2+2 a b x+b^2 x^2} \left (c+d x^2+e x\right )^{3/2} \left (-6 d x (10 a d-7 b e)+50 a d e+32 b c d-35 b e^2\right )}{240 d^3 (a+b x)}-\frac{\sqrt{a^2+2 a b x+b^2 x^2} (2 d x+e) \sqrt{c+d x^2+e x} \left (2 a d \left (4 c d-5 e^2\right )-b \left (12 c d e-7 e^3\right )\right )}{128 d^4 (a+b x)}-\frac{\sqrt{a^2+2 a b x+b^2 x^2} \left (4 c d-e^2\right ) \left (8 a c d^2-10 a d e^2-12 b c d e+7 b e^3\right ) \tanh ^{-1}\left (\frac{2 d x+e}{2 \sqrt{d} \sqrt{c+d x^2+e x}}\right )}{256 d^{9/2} (a+b x)}+\frac{b x^2 \sqrt{a^2+2 a b x+b^2 x^2} \left (c+d x^2+e x\right )^{3/2}}{5 d (a+b x)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1000
Rule 832
Rule 779
Rule 612
Rule 621
Rule 206
Rubi steps
\begin{align*} \int x^2 \sqrt{a^2+2 a b x+b^2 x^2} \sqrt{c+e x+d x^2} \, dx &=\frac{\sqrt{a^2+2 a b x+b^2 x^2} \int x^2 \left (2 a b+2 b^2 x\right ) \sqrt{c+e x+d x^2} \, dx}{2 a b+2 b^2 x}\\ &=\frac{b x^2 \sqrt{a^2+2 a b x+b^2 x^2} \left (c+e x+d x^2\right )^{3/2}}{5 d (a+b x)}+\frac{\sqrt{a^2+2 a b x+b^2 x^2} \int x \left (-4 b^2 c+b (10 a d-7 b e) x\right ) \sqrt{c+e x+d x^2} \, dx}{5 d \left (2 a b+2 b^2 x\right )}\\ &=\frac{b x^2 \sqrt{a^2+2 a b x+b^2 x^2} \left (c+e x+d x^2\right )^{3/2}}{5 d (a+b x)}-\frac{\left (32 b c d+50 a d e-35 b e^2-6 d (10 a d-7 b e) x\right ) \sqrt{a^2+2 a b x+b^2 x^2} \left (c+e x+d x^2\right )^{3/2}}{240 d^3 (a+b x)}+\frac{\left (\left (16 b^2 c d e-2 b c d (10 a d-7 b e)+\frac{5}{2} b e^2 (10 a d-7 b e)\right ) \sqrt{a^2+2 a b x+b^2 x^2}\right ) \int \sqrt{c+e x+d x^2} \, dx}{40 d^3 \left (2 a b+2 b^2 x\right )}\\ &=-\frac{\left (8 a c d^2-12 b c d e-10 a d e^2+7 b e^3\right ) (e+2 d x) \sqrt{a^2+2 a b x+b^2 x^2} \sqrt{c+e x+d x^2}}{128 d^4 (a+b x)}+\frac{b x^2 \sqrt{a^2+2 a b x+b^2 x^2} \left (c+e x+d x^2\right )^{3/2}}{5 d (a+b x)}-\frac{\left (32 b c d+50 a d e-35 b e^2-6 d (10 a d-7 b e) x\right ) \sqrt{a^2+2 a b x+b^2 x^2} \left (c+e x+d x^2\right )^{3/2}}{240 d^3 (a+b x)}+\frac{\left (\left (4 c d-e^2\right ) \left (16 b^2 c d e-2 b c d (10 a d-7 b e)+\frac{5}{2} b e^2 (10 a d-7 b e)\right ) \sqrt{a^2+2 a b x+b^2 x^2}\right ) \int \frac{1}{\sqrt{c+e x+d x^2}} \, dx}{320 d^4 \left (2 a b+2 b^2 x\right )}\\ &=-\frac{\left (8 a c d^2-12 b c d e-10 a d e^2+7 b e^3\right ) (e+2 d x) \sqrt{a^2+2 a b x+b^2 x^2} \sqrt{c+e x+d x^2}}{128 d^4 (a+b x)}+\frac{b x^2 \sqrt{a^2+2 a b x+b^2 x^2} \left (c+e x+d x^2\right )^{3/2}}{5 d (a+b x)}-\frac{\left (32 b c d+50 a d e-35 b e^2-6 d (10 a d-7 b e) x\right ) \sqrt{a^2+2 a b x+b^2 x^2} \left (c+e x+d x^2\right )^{3/2}}{240 d^3 (a+b x)}+\frac{\left (\left (4 c d-e^2\right ) \left (16 b^2 c d e-2 b c d (10 a d-7 b e)+\frac{5}{2} b e^2 (10 a d-7 b e)\right ) \sqrt{a^2+2 a b x+b^2 x^2}\right ) \operatorname{Subst}\left (\int \frac{1}{4 d-x^2} \, dx,x,\frac{e+2 d x}{\sqrt{c+e x+d x^2}}\right )}{160 d^4 \left (2 a b+2 b^2 x\right )}\\ &=-\frac{\left (8 a c d^2-12 b c d e-10 a d e^2+7 b e^3\right ) (e+2 d x) \sqrt{a^2+2 a b x+b^2 x^2} \sqrt{c+e x+d x^2}}{128 d^4 (a+b x)}+\frac{b x^2 \sqrt{a^2+2 a b x+b^2 x^2} \left (c+e x+d x^2\right )^{3/2}}{5 d (a+b x)}-\frac{\left (32 b c d+50 a d e-35 b e^2-6 d (10 a d-7 b e) x\right ) \sqrt{a^2+2 a b x+b^2 x^2} \left (c+e x+d x^2\right )^{3/2}}{240 d^3 (a+b x)}-\frac{\left (4 c d-e^2\right ) \left (8 a c d^2-12 b c d e-10 a d e^2+7 b e^3\right ) \sqrt{a^2+2 a b x+b^2 x^2} \tanh ^{-1}\left (\frac{e+2 d x}{2 \sqrt{d} \sqrt{c+e x+d x^2}}\right )}{256 d^{9/2} (a+b x)}\\ \end{align*}
Mathematica [A] time = 0.281873, size = 198, normalized size = 0.62 \[ \frac{\sqrt{(a+b x)^2} \left (-\frac{5 \left (2 a d \left (4 c d-5 e^2\right )+b \left (7 e^3-12 c d e\right )\right ) \left (\left (4 c d-e^2\right ) \tanh ^{-1}\left (\frac{2 d x+e}{2 \sqrt{d} \sqrt{c+x (d x+e)}}\right )+2 \sqrt{d} (2 d x+e) \sqrt{c+x (d x+e)}\right )}{256 d^{7/2}}+\frac{(c+x (d x+e))^{3/2} (10 a d (6 d x-5 e)-32 b c d+7 b e (5 e-6 d x))}{48 d^2}+b x^2 (c+x (d x+e))^{3/2}\right )}{5 d (a+b x)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.214, size = 530, normalized size = 1.7 \begin{align*}{\frac{{\it csgn} \left ( bx+a \right ) }{3840} \left ( 768\,{d}^{9/2} \left ( d{x}^{2}+ex+c \right ) ^{3/2}{x}^{2}b+960\,{d}^{9/2} \left ( d{x}^{2}+ex+c \right ) ^{3/2}xa-672\,{d}^{7/2} \left ( d{x}^{2}+ex+c \right ) ^{3/2}xbe-800\,{d}^{7/2} \left ( d{x}^{2}+ex+c \right ) ^{3/2}ae-512\,{d}^{7/2} \left ( d{x}^{2}+ex+c \right ) ^{3/2}bc+560\,{d}^{5/2} \left ( d{x}^{2}+ex+c \right ) ^{3/2}b{e}^{2}-480\,{d}^{9/2}\sqrt{d{x}^{2}+ex+c}xac+600\,{d}^{7/2}\sqrt{d{x}^{2}+ex+c}xa{e}^{2}+720\,{d}^{7/2}\sqrt{d{x}^{2}+ex+c}xbce-420\,{d}^{5/2}\sqrt{d{x}^{2}+ex+c}xb{e}^{3}-240\,{d}^{7/2}\sqrt{d{x}^{2}+ex+c}ace+300\,{d}^{5/2}\sqrt{d{x}^{2}+ex+c}a{e}^{3}+360\,{d}^{5/2}\sqrt{d{x}^{2}+ex+c}bc{e}^{2}-210\,{d}^{3/2}\sqrt{d{x}^{2}+ex+c}b{e}^{4}-480\,\ln \left ( 1/2\,{\frac{2\,\sqrt{d{x}^{2}+ex+c}\sqrt{d}+2\,dx+e}{\sqrt{d}}} \right ) a{c}^{2}{d}^{4}+720\,\ln \left ( 1/2\,{\frac{2\,\sqrt{d{x}^{2}+ex+c}\sqrt{d}+2\,dx+e}{\sqrt{d}}} \right ) ac{d}^{3}{e}^{2}-150\,\ln \left ( 1/2\,{\frac{2\,\sqrt{d{x}^{2}+ex+c}\sqrt{d}+2\,dx+e}{\sqrt{d}}} \right ) a{d}^{2}{e}^{4}+720\,\ln \left ( 1/2\,{\frac{2\,\sqrt{d{x}^{2}+ex+c}\sqrt{d}+2\,dx+e}{\sqrt{d}}} \right ) b{c}^{2}{d}^{3}e-600\,\ln \left ( 1/2\,{\frac{2\,\sqrt{d{x}^{2}+ex+c}\sqrt{d}+2\,dx+e}{\sqrt{d}}} \right ) bc{d}^{2}{e}^{3}+105\,\ln \left ( 1/2\,{\frac{2\,\sqrt{d{x}^{2}+ex+c}\sqrt{d}+2\,dx+e}{\sqrt{d}}} \right ) bd{e}^{5} \right ){d}^{-{\frac{11}{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{d x^{2} + e x + c} \sqrt{{\left (b x + a\right )}^{2}} x^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.84483, size = 1250, normalized size = 3.94 \begin{align*} \left [-\frac{15 \,{\left (32 \, a c^{2} d^{3} - 48 \, b c^{2} d^{2} e - 48 \, a c d^{2} e^{2} + 40 \, b c d e^{3} + 10 \, a d e^{4} - 7 \, b e^{5}\right )} \sqrt{d} \log \left (8 \, d^{2} x^{2} + 8 \, d e x + 4 \, \sqrt{d x^{2} + e x + c}{\left (2 \, d x + e\right )} \sqrt{d} + 4 \, c d + e^{2}\right ) - 4 \,{\left (384 \, b d^{5} x^{4} - 256 \, b c^{2} d^{3} - 520 \, a c d^{3} e + 460 \, b c d^{2} e^{2} + 150 \, a d^{2} e^{3} - 105 \, b d e^{4} + 48 \,{\left (10 \, a d^{5} + b d^{4} e\right )} x^{3} + 8 \,{\left (16 \, b c d^{4} + 10 \, a d^{4} e - 7 \, b d^{3} e^{2}\right )} x^{2} + 2 \,{\left (120 \, a c d^{4} - 116 \, b c d^{3} e - 50 \, a d^{3} e^{2} + 35 \, b d^{2} e^{3}\right )} x\right )} \sqrt{d x^{2} + e x + c}}{7680 \, d^{5}}, \frac{15 \,{\left (32 \, a c^{2} d^{3} - 48 \, b c^{2} d^{2} e - 48 \, a c d^{2} e^{2} + 40 \, b c d e^{3} + 10 \, a d e^{4} - 7 \, b e^{5}\right )} \sqrt{-d} \arctan \left (\frac{\sqrt{d x^{2} + e x + c}{\left (2 \, d x + e\right )} \sqrt{-d}}{2 \,{\left (d^{2} x^{2} + d e x + c d\right )}}\right ) + 2 \,{\left (384 \, b d^{5} x^{4} - 256 \, b c^{2} d^{3} - 520 \, a c d^{3} e + 460 \, b c d^{2} e^{2} + 150 \, a d^{2} e^{3} - 105 \, b d e^{4} + 48 \,{\left (10 \, a d^{5} + b d^{4} e\right )} x^{3} + 8 \,{\left (16 \, b c d^{4} + 10 \, a d^{4} e - 7 \, b d^{3} e^{2}\right )} x^{2} + 2 \,{\left (120 \, a c d^{4} - 116 \, b c d^{3} e - 50 \, a d^{3} e^{2} + 35 \, b d^{2} e^{3}\right )} x\right )} \sqrt{d x^{2} + e x + c}}{3840 \, d^{5}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.18472, size = 497, normalized size = 1.57 \begin{align*} \frac{1}{1920} \, \sqrt{d x^{2} + x e + c}{\left (2 \,{\left (4 \,{\left (6 \,{\left (8 \, b x \mathrm{sgn}\left (b x + a\right ) + \frac{10 \, a d^{4} \mathrm{sgn}\left (b x + a\right ) + b d^{3} e \mathrm{sgn}\left (b x + a\right )}{d^{4}}\right )} x + \frac{16 \, b c d^{3} \mathrm{sgn}\left (b x + a\right ) + 10 \, a d^{3} e \mathrm{sgn}\left (b x + a\right ) - 7 \, b d^{2} e^{2} \mathrm{sgn}\left (b x + a\right )}{d^{4}}\right )} x + \frac{120 \, a c d^{3} \mathrm{sgn}\left (b x + a\right ) - 116 \, b c d^{2} e \mathrm{sgn}\left (b x + a\right ) - 50 \, a d^{2} e^{2} \mathrm{sgn}\left (b x + a\right ) + 35 \, b d e^{3} \mathrm{sgn}\left (b x + a\right )}{d^{4}}\right )} x - \frac{256 \, b c^{2} d^{2} \mathrm{sgn}\left (b x + a\right ) + 520 \, a c d^{2} e \mathrm{sgn}\left (b x + a\right ) - 460 \, b c d e^{2} \mathrm{sgn}\left (b x + a\right ) - 150 \, a d e^{3} \mathrm{sgn}\left (b x + a\right ) + 105 \, b e^{4} \mathrm{sgn}\left (b x + a\right )}{d^{4}}\right )} + \frac{{\left (32 \, a c^{2} d^{3} \mathrm{sgn}\left (b x + a\right ) - 48 \, b c^{2} d^{2} e \mathrm{sgn}\left (b x + a\right ) - 48 \, a c d^{2} e^{2} \mathrm{sgn}\left (b x + a\right ) + 40 \, b c d e^{3} \mathrm{sgn}\left (b x + a\right ) + 10 \, a d e^{4} \mathrm{sgn}\left (b x + a\right ) - 7 \, b e^{5} \mathrm{sgn}\left (b x + a\right )\right )} \log \left ({\left | -2 \,{\left (\sqrt{d} x - \sqrt{d x^{2} + x e + c}\right )} \sqrt{d} - e \right |}\right )}{256 \, d^{\frac{9}{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]